const { ccclass, property } = cc._decorator;

@ccclass
export default class MatchGameConfig {

    static SQUARE_MOVE_TIME = 0.1;
    static CHANNGE_WAIT_TIME = 0.15;
    static MAX_ROW = 9;
    static MAX_COL = 11;
    static ITEM_WIDTH = 78;
    static ITEM_HEIGHT = 78;
    static MAX_MATCH_TYPE_COUNT = 5;

    static SquareType = {
        MatchItem: "M",
        PropItem: "P",
        ObstacleItem: "O",
        Null: "N",
        EMPTY: "E",
    };

    static SquarePool = {
        MatchItem: "MatchItem",
        PropItem: "PropItem",
        ObstacleItem: "ObstacleItem",
        BottomItem: "BottomItem",
        FlyPropeller: "FlyPropeller",
        FlyBoxItem: "FlyBoxItem",
    };

    static MatchAniPool = {
        MatchDestoryItem: "MatchDestoryItem",
        OnePropUseAniPrefab: "OnePropUseAniPrefab",
        DoublePropAniPrefab: "doublePropAniPrefab",
        SkillPrefab: "SkillPrefab",
        obstacleAniPrefab: "obstacleAniPrefab",
        targetAniPrefab: "targetAniPrefab",
        smearPrefab: "smearPrefab",
        squareExchange: "squareExchange",
        matchBoomPrefab: "matchBoomPrefab",
        matchEffectItem: "matchEffectItem",
    };

    static MatchItemType = {
        empty: -2,
        null: -1,
        redBook: 1,
        yellowCrown: 2,
        greenLeaf: 3,
        blueShield: 4,
        purpleGem: 5,
    };

    static PropType = {
        Propeller: 1,
        RocketHorzontall: 2,
        RocketVertial: 3,
        Tnt: 4,
        LightingBall: 5,
    };

    static DisplayMapType = {
        Normal: 1,
        EmptyDrop: 2,
        EmptyBlock: 3,
    };

    static GameLevelType = {
        Easy: 0,
        Middle: 1,
        Difficulty: 2,
        GoldCoin: 3,
    };

    static TargetObstacleType = {
        WoodenBox: 1,
        ColorBox: 2,
        Grass: 3,
        GrassLand: 4,
        Egg: 5,
        ColorBottle: 6,
        Vase: 7,
        Honey: 8,
        Icicle: 9,
        Oyster: 11,
        Flowerpot: 12,
        Stone: 13,
        SafeBox: 14,
        PorcelainPig: 15,
        CupboardPlate: 16,
        MagicHat: 17,
        Mail: 18,
        Bird: 19,
        GoldCoin: 20,
        PurpleFlower: 21,
        Pearl: 23,
        Candlebox: 25,
        BirdNest: 26,
        CupHolder: 27,
        Rock: 28,
        DrillFill: 29,
    };

    constructor() { }
}